//
//  YTFTextView.swift
//  sinaWeibo
//
//  Created by pro on 16/3/6.
//  Copyright © 2016年 pro. All rights reserved.
//

import UIKit

class YTFTextView: UITextView {

    //定义一个暗文属性，注意类型问题,String类型没有draw的方法
    var holderString: NSString?
    
    override func drawRect(rect: CGRect) {
        //注意：textView必须有font
        holderString?.drawAtPoint(CGPoint(x: 2, y: 8), withAttributes: [NSFontAttributeName: font!])
    }

}
